-- GENERATED SPELL FOR [Twilight Slayer] --


function spell0_33823(pUnit, Event) --@Bladestorm,Self--
pUnit:FullCastSpellOnTarget(63784,pUnit)
pUnit:RegisterEvent('Sorts_33823', 8000, 1)
end

function spell1_33823(pUnit, Event) --@Bladestorm,Self--
pUnit:FullCastSpellOnTarget(63785,pUnit)
pUnit:RegisterEvent('Sorts_33823', 651, 1)
end

function spell2_33823(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(35054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33823', 5312, 1)
end

function Sorts_33823(pUnit, Event)
local choix_sorts_33823 = math.random(0, 2)
if choix_sorts_33823 == 0 then
pUnit:RegisterEvent('spell0_33823', 1, 1)
end
if choix_sorts_33823 == 1 then
pUnit:RegisterEvent('spell1_33823', 1, 1)
end
if choix_sorts_33823 == 2 then
pUnit:RegisterEvent('spell2_33823', 1, 1)
end
end

function mob33823_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33823', math.random(1500, 3000), 1)
end

function mob33823_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33823_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33823_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33823, 1, 'mob33823_Action')
RegisterUnitEvent(33823, 2, 'mob33823_Leave')
RegisterUnitEvent(33823, 3, 'mob33823_Kill')
RegisterUnitEvent(33823, 4, 'mob33823_Die')
